﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace SqlExecuter.Client.Model
{
    public class FileSystemItem : BaseObject
    {
        private string _Name;
        public string Name
        {
            get { return _Name; }
            set
            {
                if (value == _Name) return;
                _Name = value;
                OnPropertyChanged("Name");
            }
        }

        private string _FullPath;
        public string FullPath
        {
            get { return _FullPath; }
            set
            {
                if (value == _FullPath) return;
                _FullPath = value;
                OnPropertyChanged("FullPath");
            }
        }
        
        private bool _IsSelected;
        public bool IsSelected
        {
            get { return _IsSelected; }
            set
            {
                if (value == _IsSelected) return;
                _IsSelected = value;
                OnPropertyChanged("IsSelected");
            }
        }

        #region Methods
        public FileSystemItem()
        {
        }

        public FileSystemItem(string name, string fullPath)
        {
            Name = name;
            FullPath = fullPath;
        }
        #endregion
    }
}
